package club.mzywucai.blog.air_portal.controller;

import club.mzywucai.blog.air_portal.pojo.domain.JsonData;
import club.mzywucai.blog.air_portal.service.GetCodeSessionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @author mzywucai
 * @Description
 * @date 2019/6/3
 */
@RestController
public class GetCodeSessionController {
    @Autowired
    GetCodeSessionService getCodeSessionService;

    /**
     * @Description 获取当前用户上传的文件记录
     * @author mzywucai
     * @time 2019-06-03
     * @see 
     * @return   java.lang.Object
     * @params  [request]
     */
    @RequestMapping("/api/getCodeHistory")
    public Object getCodeHistory(HttpServletRequest request) {
        JsonData json = getCodeSessionService.getCodeHistory(request);

        return json;
    }
}
